<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page import="java.util.*"%>
<%@ page import="com.homework.model.*"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!-- 包含头部信息用于适应不同设备 -->
<meta name="viewport"
	content="width=device-width, initial-scale=1
    	user-scalable=no">
<!-- 包含 bootstrap 样式表 -->
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/BootStrap/css/bootstrap.min.css">
<!-- JavaScript 放置在文档最后面可以使页面加载速度更快 -->
<!-- 可选: 包含 jQuery 库 -->
<script
	src="${pageContext.request.contextPath }/BootStrap/js/jquery-3.1.1.js"></script>
<!-- 可选: 合并了 Bootstrap JavaScript 插件 -->
<script
	src="${pageContext.request.contextPath }/BootStrap/js/bootstrap.min.js"></script>
<title>查看批阅</title>
<!--学生的整体框架-->

</head>
<body>

	<%
		int a = 0;
	%>

	<!--整个页面栅格-->
	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span12">
				<table class="table table-hover table-bordered table-striped">
					<thead>
						<tr>

							<th>序号</th>
							<th>作业名</th>
							<th>老师</th>
							<th>类型</th>
							<th>起止时间</th>
							<th>修改时间</th>
							<th>作业状态</th>
							<th>操作</th>

						</tr>
					</thead>
					<tbody>
						<c:if test="${!empty list}">
							<c:forEach items="${list}" var="c" varStatus="status">
								<c:if test="${status.count%2==0 } ">
									<tr class="success" style="color: #98FB98; font-size: 20px;">
								</c:if>
								<c:if test="${status.count%2!=0 }">
									<tr>
								</c:if>
								<td><%=++a%></td>
								<td>${ c.name }</td>
								<td>${ c.creater }</td>
								<td>${ c.type }</td>
								<td>${ c.starttime }</td>
								<td>${ c.endtime }</td>
								<td>${ c.state == 2 ? '待提交':'已完成' }</td>
								<td><a
									href="${pageContext.request.contextPath }/studentexamscore?method=studentToExam&id=${c.homeworkid }"
									onclick="setbreadcrumb()">去完成</a></td>

								</tr>

							</c:forEach>
						</c:if>
					</tbody>
				</table>
				<!--遮罩窗体-->
				<!--遮罩窗体111-->
				<c:if test="${!empty checkwork }">
					<c:forEach items="${checkwork }" var="cw" varStatus="loop">
						<div class="modal fade" id="${cw.ch_id }" role="dialog"
							aria-labelledby="myModalLabel" aria-hidden="true">
							<div class="modal-dialog">
								<div class="modal-content">
									<div class="modal-header">
										<button type="button" class="close" data-dismiss="modal"
											aria-hidden="true">×</button>
										<h4 class="modal-title" id="myModalLabel">
											${work[loop.count-1].w_title }</h4>
									</div>
									<div class="modal-body">${cw.ch_mark }</div>
									<div class="modal-footer">
										<button type="button" class="btn btn-default"
											data-dismiss="modal">关闭</button>
									</div>
								</div>

							</div>
						</div>
					</c:forEach>
				</c:if>
			</div>
		</div>
	</div>
</body>
</html>